//
//  CreditCore.h
//

#import <Foundation/Foundation.h>
#import "MainTabBarController.h"
#import "AppDelegate.h"
#import "TipsAlertView.h"
#import <CoreLocation/CoreLocation.h>

@class AppDelegate;
@class MainTabBarController;

@interface CreditCore : NSObject<CLLocationManagerDelegate>

@property (nonatomic) MainTabBarController *mainTabbarController;

+ (CreditCore *)globleCore;

+ (AppDelegate *)appDelegate;

+ (UIWindow *)mainWindow;

+ (UIViewController *)appRootViewController;

+ (void)deleteAllHTTPCookies;

+ (BOOL)isFreshLaunch:(NSString *)previousAppVersion;

- (void)firstLaunch;

- (void)loadMainTabbarController;

@property (nonatomic) CLLocationManager *locationManager;

@property (nonatomic) TipsAlertTokenLoseView *alertV;

@property (nonatomic) TipsAlertView *alertNetV;


@end


@interface CreditCore (SwitchController)<CLLocationManagerDelegate>

- (void)loginController:(VoidBlock)finishBlock;

- (void)showAlert:(BOOL)isExpire;

- (void)jumpToPage:(NSString *)urlStr;

- (void)initLocationJudge;

@end

